﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Kardex_Entity;

namespace Kardex_DataAccess
{
    public class TypeClientDA
    {
        bd_kardexEntities context;
        public TypeClientDA()
        {
            context = new bd_kardexEntities();
        }

        public List<typeclient> GetListAll()
        {
            List<typeclient> ListTypeClient = null;
            try
            {
                var q = from c in context.typeclient 
                        orderby c.NameTypeClient
                        select c;
                ListTypeClient = q.ToList();

                return ListTypeClient;
            }
            catch (Exception ex)
            {
                throw new Exception(ex.Message.ToString());
            }
        }
    }
}
